﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common {
	interface IRegisterManager<T> where T : IRegisterable {
		void Register(T obj);
		bool IsExists(string id);
		T Get(string id);
		void Remove(string id);
		void Clear();
		T this[string id] { get; }
	}
	interface IRegisterable {
		string Id { get; }
	}
}